import 'package:flutter/material.dart';
import '../mine/mine_cell.dart';
import '../common.dart';

class DiscoverPage extends StatefulWidget {
  const DiscoverPage({super.key});

  @override
  State<DiscoverPage> createState() => _DiscoverPageState();
}

class _DiscoverPageState extends State<DiscoverPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text(
            '发现',
            style: TextStyle(
              color: Colors.black,
            ),
          ),
          centerTitle: true,
          backgroundColor: GlobalThemeColor,
          toolbarHeight: 50,
        ),
        body: Container(
            color: const Color.fromARGB(255, 241, 241, 241),
            child: MediaQuery.removePadding(
              removeTop: true,
              context: context,
              child: ListView(
                children: [
                  Column(
                    children: [
                      const MineCell(
                        imageName: 'images/朋友圈.png',
                        title: '朋友圈',
                      ),
                      const SizedBox(
                        height: 10,
                      ),
                      const MineCell(
                        imageName: 'images/扫一扫2.png',
                        title: '扫一扫',
                      ),
                      Row(
                        children: [
                          Container(
                            width: 50,
                            height: 0.5,
                            color: Colors.white,
                          )
                        ],
                      ),
                      const MineCell(
                        imageName: 'images/购物.png',
                        title: '购物',
                        subtitle: '618限时折扣',
                        subImageName: 'images/badge.png',
                      )
                    ],
                  )
                ],
              ),
            )));
  }
}
